﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace CyrideTest
{
    public class AmesMiddleSchool : Location 
    {
        public string name = "Ames Middle School";
        public List<TimeSpan> timeTable = new List<TimeSpan>();
        //Time for Red East North
        private TimeSpan am622 = new TimeSpan(6, 22, 00);
        private TimeSpan am704 = new TimeSpan(7, 04, 00);
        private TimeSpan am721 = new TimeSpan(7, 21, 00);
        private TimeSpan am731 = new TimeSpan(7, 31, 00);
        private TimeSpan am741 = new TimeSpan(7, 41, 00);
        private TimeSpan am751 = new TimeSpan(7, 51, 00);
        private TimeSpan am801 = new TimeSpan(8, 01, 00);
        private TimeSpan am811 = new TimeSpan(8, 11, 00);
        private TimeSpan am821 = new TimeSpan(8, 21, 00);
        private TimeSpan am831 = new TimeSpan(8, 31, 00);
        private TimeSpan am841 = new TimeSpan(8, 41, 00);
        private TimeSpan am856 = new TimeSpan(8, 56, 00);
        private TimeSpan am906 = new TimeSpan(9, 06, 00);
        private TimeSpan am916 = new TimeSpan(9, 16, 00);
        private TimeSpan am926 = new TimeSpan(9, 26, 00);
        private TimeSpan am936 = new TimeSpan(9, 36, 00);
        private TimeSpan am951 = new TimeSpan(9, 51, 00);
        private TimeSpan am1006 = new TimeSpan(10, 06, 00);
        private TimeSpan am1021 = new TimeSpan(10, 21, 00);
        private TimeSpan am1036 = new TimeSpan(10, 36, 00);
        private TimeSpan am1051 = new TimeSpan(10, 51, 00);
        private TimeSpan am1106 = new TimeSpan(11, 06, 00);
        private TimeSpan am1121 = new TimeSpan(11, 21, 00);
        private TimeSpan am1131 = new TimeSpan(11, 31, 00);
        private TimeSpan am1141 = new TimeSpan(11, 41, 00);
        private TimeSpan am1151 = new TimeSpan(11, 51, 00);
        private TimeSpan pm1201 = new TimeSpan(12, 01, 00);
        private TimeSpan pm1211 = new TimeSpan(12, 11, 00);
        private TimeSpan pm1221 = new TimeSpan(12, 21, 00);
        private TimeSpan pm1231 = new TimeSpan(12, 31, 00);
        private TimeSpan pm1241 = new TimeSpan(12, 41, 00);
        private TimeSpan pm1251 = new TimeSpan(12, 51, 00);
        private TimeSpan pm102 = new TimeSpan(13, 02, 00);
        private TimeSpan pm112 = new TimeSpan(13, 12, 00);
        private TimeSpan pm122 = new TimeSpan(13, 22, 00);
        private TimeSpan pm132 = new TimeSpan(13, 32, 00);
        private TimeSpan pm142 = new TimeSpan(13, 42, 00);
        private TimeSpan pm152 = new TimeSpan(13, 52, 00);
        private TimeSpan pm202 = new TimeSpan(14, 02, 00);
        private TimeSpan pm212 = new TimeSpan(14, 12, 00);
        private TimeSpan pm222 = new TimeSpan(14, 22, 00);
        private TimeSpan pm232 = new TimeSpan(14, 32, 00);
        private TimeSpan pm242 = new TimeSpan(14, 42, 00);
        private TimeSpan pm252 = new TimeSpan(14, 52, 00);
        private TimeSpan pm302 = new TimeSpan(15, 02, 00);
        private TimeSpan pm312 = new TimeSpan(15, 12, 00);
        private TimeSpan pm322 = new TimeSpan(15, 22, 00);
        private TimeSpan pm332 = new TimeSpan(15, 32, 00);
        private TimeSpan pm342 = new TimeSpan(15, 42, 00);
        private TimeSpan pm352 = new TimeSpan(15, 52, 00);
        private TimeSpan pm402 = new TimeSpan(16, 02, 00);
        private TimeSpan pm412 = new TimeSpan(16, 12, 00);
        private TimeSpan pm422 = new TimeSpan(16, 22, 00);
        private TimeSpan pm432 = new TimeSpan(16, 32, 00);
        private TimeSpan pm442 = new TimeSpan(16, 42, 00);
        private TimeSpan pm452 = new TimeSpan(16, 52, 00);
        private TimeSpan pm512 = new TimeSpan(17, 12, 00);
        private TimeSpan pm522 = new TimeSpan(17, 22, 00);
        private TimeSpan pm532 = new TimeSpan(17, 32, 00);
        private TimeSpan pm552 = new TimeSpan(17, 52, 00);
        private TimeSpan pm633 = new TimeSpan(18, 33, 00);
        private TimeSpan pm714 = new TimeSpan(19, 14, 00);
        private TimeSpan pm754 = new TimeSpan(19, 54, 00);
        private TimeSpan pm834 = new TimeSpan(20, 34, 00);
        private TimeSpan pm914 = new TimeSpan(21, 14, 00);
        private TimeSpan pm954 = new TimeSpan(21, 54, 00);
        private TimeSpan pm1034 = new TimeSpan(22, 34, 00);

        //Time for Red East North
       /* private TimeSpan am622 = new TimeSpan(6, 22, 00);
        private TimeSpan am704 = new TimeSpan(7, 04, 00);
        private TimeSpan am721 = new TimeSpan(7, 21, 00);
        private TimeSpan am731 = new TimeSpan(7, 31, 00);
        private TimeSpan am741 = new TimeSpan(7, 41, 00);
        private TimeSpan am751 = new TimeSpan(7, 51, 00);
        private TimeSpan am801 = new TimeSpan(8, 01, 00);
        private TimeSpan am811 = new TimeSpan(8, 11, 00);
        private TimeSpan am821 = new TimeSpan(8, 21, 00);
        private TimeSpan am831 = new TimeSpan(8, 31, 00);
        private TimeSpan am841 = new TimeSpan(8, 41, 00);
        private TimeSpan am856 = new TimeSpan(8, 56, 00);
        private TimeSpan am906 = new TimeSpan(9, 06, 00);
        private TimeSpan am916 = new TimeSpan(9, 16, 00);
        private TimeSpan am926 = new TimeSpan(9, 26, 00);
        private TimeSpan am936 = new TimeSpan(9, 36, 00);
        private TimeSpan am951 = new TimeSpan(9, 51, 00);
        private TimeSpan am1006 = new TimeSpan(10, 06, 00);
        private TimeSpan am1021 = new TimeSpan(10, 21, 00);
        private TimeSpan am1036 = new TimeSpan(10, 36, 00);
        private TimeSpan am1051 = new TimeSpan(10, 51, 00);
        private TimeSpan am1106 = new TimeSpan(11, 06, 00);
        private TimeSpan am1121 = new TimeSpan(11, 21, 00);
        private TimeSpan am1131 = new TimeSpan(11, 31, 00);
        private TimeSpan am1141 = new TimeSpan(11, 41, 00);
        private TimeSpan am1151 = new TimeSpan(11, 51, 00);
        private TimeSpan pm1201 = new TimeSpan(12, 01, 00);
        private TimeSpan pm1211 = new TimeSpan(12, 11, 00);
        private TimeSpan pm1221 = new TimeSpan(12, 21, 00);
        private TimeSpan pm1231 = new TimeSpan(12, 31, 00);
        private TimeSpan pm1241 = new TimeSpan(12, 41, 00);
        private TimeSpan pm1251 = new TimeSpan(12, 51, 00);
        private TimeSpan pm102 = new TimeSpan(13, 02, 00);
        private TimeSpan pm112 = new TimeSpan(13, 12, 00);
        private TimeSpan pm122 = new TimeSpan(13, 22, 00);
        private TimeSpan pm132 = new TimeSpan(13, 32, 00);
        private TimeSpan pm142 = new TimeSpan(13, 42, 00);
        private TimeSpan pm152 = new TimeSpan(13, 52, 00);
        private TimeSpan pm202 = new TimeSpan(14, 02, 00);
        private TimeSpan pm212 = new TimeSpan(14, 12, 00);
        private TimeSpan pm222 = new TimeSpan(14, 22, 00);
        private TimeSpan pm232 = new TimeSpan(14, 32, 00);
        private TimeSpan pm242 = new TimeSpan(14, 42, 00);
        private TimeSpan pm252 = new TimeSpan(14, 52, 00);
        private TimeSpan pm302 = new TimeSpan(15, 02, 00);
        private TimeSpan pm312 = new TimeSpan(15, 12, 00);
        private TimeSpan pm322 = new TimeSpan(15, 22, 00);
        private TimeSpan pm332 = new TimeSpan(15, 32, 00);
        private TimeSpan pm342 = new TimeSpan(15, 42, 00);
        private TimeSpan pm352 = new TimeSpan(15, 52, 00);
        private TimeSpan pm402 = new TimeSpan(16, 02, 00);
        private TimeSpan pm412 = new TimeSpan(16, 12, 00);
        private TimeSpan pm422 = new TimeSpan(16, 22, 00);
        private TimeSpan pm432 = new TimeSpan(16, 32, 00);
        private TimeSpan pm442 = new TimeSpan(16, 42, 00);
        private TimeSpan pm452 = new TimeSpan(16, 52, 00);
        private TimeSpan pm512 = new TimeSpan(17, 12, 00);
        private TimeSpan pm522 = new TimeSpan(17, 22, 00);
        private TimeSpan pm532 = new TimeSpan(17, 32, 00);
        private TimeSpan pm552 = new TimeSpan(17, 52, 00);
        private TimeSpan pm633 = new TimeSpan(18, 33, 00);
        private TimeSpan pm714 = new TimeSpan(19, 14, 00);
        private TimeSpan pm754 = new TimeSpan(19, 54, 00);
        private TimeSpan pm834 = new TimeSpan(20, 34, 00);
        private TimeSpan pm914 = new TimeSpan(21, 14, 00);
        private TimeSpan pm954 = new TimeSpan(21, 54, 00);
        private TimeSpan pm1034 = new TimeSpan(22, 34, 00); 
        */

        public AmesMiddleSchool()
        {   
        }
        public override string getName()
        {
            return name;
        }

        public override string[] getBusRoutes()
        {
            string[] routes = { "Red South West", "Red East North" };
            return routes;
        }

        public override List<TimeSpan> getTimes()
        {
            return timeTable;
        }

        public override void selectedRoute(string route)
        {
            if (route.Equals("Red South West"))
            {
                timeTable.Clear();

                timeTable.Add(pm1034);
            }
            if (route.Equals("Red East North"))
            {
                timeTable.Clear();

                timeTable.Add(am622);
                timeTable.Add(am704);
                timeTable.Add(am721);
                timeTable.Add(am731);
                timeTable.Add(am751);

                timeTable.Add(am801);
                timeTable.Add(am811);
                timeTable.Add(am821);
                timeTable.Add(am831);
                timeTable.Add(am856);

                timeTable.Add(am906);
                timeTable.Add(am916);
                timeTable.Add(am926);
                timeTable.Add(am936);
                timeTable.Add(am951);

                timeTable.Add(am1006);
                timeTable.Add(am1021);
                timeTable.Add(am1036);
                timeTable.Add(am1051);

                timeTable.Add(am1106);
                timeTable.Add(am1121);
                timeTable.Add(am1131);
                timeTable.Add(am1141);
                timeTable.Add(am1151);

                timeTable.Add(pm1201);
                timeTable.Add(pm1211);
                timeTable.Add(pm1231);
                timeTable.Add(pm1241);
                timeTable.Add(pm1251);

                timeTable.Add(pm102);
                timeTable.Add(pm112);
                timeTable.Add(pm122);
                timeTable.Add(pm132);
                timeTable.Add(pm142);
                timeTable.Add(pm152);

                timeTable.Add(pm202);
                timeTable.Add(pm212);
                timeTable.Add(pm222);
                timeTable.Add(pm232);
                timeTable.Add(pm242);
                timeTable.Add(pm252);

                timeTable.Add(pm302);
                timeTable.Add(pm312);
                timeTable.Add(pm322);
                timeTable.Add(pm332);
                timeTable.Add(pm342);
                timeTable.Add(pm352);

                timeTable.Add(pm402);
                timeTable.Add(pm412);
                timeTable.Add(pm422);
                timeTable.Add(pm432);
                timeTable.Add(pm442);
                timeTable.Add(pm452);

                timeTable.Add(pm512);
                timeTable.Add(pm522);
                timeTable.Add(pm532);
                timeTable.Add(pm552);

                timeTable.Add(pm633);

                timeTable.Add(pm714);
                timeTable.Add(pm754);

                timeTable.Add(pm834);

                timeTable.Add(pm914);

                timeTable.Add(pm1034);
            }

        }
    }
}
